home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / include / RCS / dixfontstr.h,v < prev    next >
Encoding:
Text File  |  1990-02-15  |  2.7 KB  |  98 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     90.02.14.16.17.12;  author tve;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @Original X11R4 distribution
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Initial revision
  24. @
  25. text
  26. @/* $XConsortium: dixfontstr.h,v 1.6 89/03/11 15:20:13 rws Exp $ */
  27. /***********************************************************
  28. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  29. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  30.  
  31.                         All Rights Reserved
  32.  
  33. Permission to use, copy, modify, and distribute this software and its 
  34. documentation for any purpose and without fee is hereby granted, 
  35. provided that the above copyright notice appear in all copies and that
  36. both that copyright notice and this permission notice appear in 
  37. supporting documentation, and that the names of Digital or MIT not be
  38. used in advertising or publicity pertaining to distribution of the
  39. software without specific, written prior permission.  
  40.  
  41. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  42. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  43. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  44. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  45. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  46. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  47. SOFTWARE.
  48.  
  49. ******************************************************************/
  50.  
  51. #ifndef DIXFONTSTRUCT_H
  52. #define DIXFONTSTRUCT_H
  53.  
  54. #include "dixfont.h"
  55. #include "font.h"
  56. #include "misc.h"
  57.  
  58. extern FontPtr    FontFileLoad(/* name, length */); /* implemented in OS layer */
  59. extern Bool    FontFilePropLoad(/* name, length, *font, fi, *props */);
  60. extern void    FontUnload(/* font */);
  61.  
  62. typedef struct _DIXFontProp {
  63.     ATOM    name;
  64.     INT32    value;    /* assumes ATOM is not larger than INT32 */
  65. } DIXFontProp;
  66.  
  67. /*
  68.  * FONT is created at font load time; it is not part of the
  69.  * font file format
  70.  */
  71. typedef struct _Font {
  72.     FontInfoPtr    pFI;
  73.     DIXFontProp    *pFP;
  74.     CharInfoPtr    pCI;            /* bitmap metrics and offset */
  75.     char    *pGlyphs;
  76.     pointer    osPrivate;
  77.     int        fileType;        /* tag for OS layer */
  78.     int        refcnt;            /* free storage when this goes to 0 */
  79.     pointer    devPriv[MAXSCREENS];    /* information private to screen */
  80.     CharInfoPtr    pInkCI;            /* ink metrics */
  81.     CharInfoPtr    pInkMin;        /* ink metrics */
  82.     CharInfoPtr    pInkMax;        /* ink metrics */
  83. } FontRec;
  84.  
  85.  
  86. /* in dixfont.c */
  87. extern FontPtr    OpenFont();
  88. extern Bool    SetDefaultFont();
  89. extern int    CloseFont();
  90. extern Bool    DescribeFont();
  91. extern void    ServerBitmapFromGlyph();
  92. extern Bool    CursorMetricsFromGlyph();
  93. extern void    GetGlyphs();
  94. extern Bool    QueryTextExtents();
  95.  
  96. #endif /* DIXFONTSTRUCT_H */
  97. @
  98.